import { PaginationParamsType } from "@/library/common/types"

type _UseAllType = {
    Id: number
    Name: string
    Code: string
    Token: string
    Address: string
    PhoneNumber: string
    UpdatedAt: string
    CreatedAt: string
}

/**
 * 查询参数
 */
export type SelectParamsType = Partial<Pick<_UseAllType, "Name" | "Code">> & PaginationParamsType

/**
 * 查询响应 Data
 */
export type DataType = Omit<_UseAllType, "">

/**
 * 更新
 */
export type UpdateType = Pick<_UseAllType, "Id" | "Name" | "Code" | "Token" | "Address" | "PhoneNumber">

/**
 * 新增
 */
export type InsertType = Omit<UpdateType, "Id">

export type EditDialogType = {
    visible: boolean
    editForm: Partial<UpdateType>
}

/**
 * 删除
 */
export type DeleteType = Pick<_UseAllType, "Id">